package org.example.POJO.game;

import org.example.Page.GamePanel;

import java.awt.*;

public class Shi extends Chess {
    public Shi(int camp, Point p) {
        super("shi", camp, p);
    }
    public Shi( int camp,int px) {
        this( camp, new Point(px, 1));
    }
    public boolean isAbleMove(Point tp, GamePanel gamePanel) {
        return isLine(tp) == 1 && isInWangGong(tp) && getStep(tp) == 1;
    }
}
